import request from '@/utils/request'

// 查询黑名单列表
export function listBlack(query) {
  return request({
    url: '/parking/black/list',
    method: 'get',
    params: query
  })
}

// 查询黑名单详细
export function getBlack(blackId) {
  return request({
    url: '/parking/black/' + blackId,
    method: 'get'
  })
}

// 新增黑名单
export function addBlack(data) {
  return request({
    url: '/parking/black',
    method: 'post',
    data: data
  })
}

// 修改黑名单
export function updateBlack(data) {
  return request({
    url: '/parking/black',
    method: 'put',
    data: data
  })
}

// 删除黑名单
export function delBlack(blackId) {
  return request({
    url: '/parking/black/' + blackId,
    method: 'delete'
  })
}

//重新下发
export function resend(blackId) {
  return request({
    url: '/parking/black/resend/' + blackId,
    method: 'put'
  })
}
